package com.tarena.baking.pojo.param;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CommentParam implements Serializable {

    private Long userId;

    @NotNull(message = "内容ID不允许为空")
    private Long contentId;

    @NotBlank(message = "评论内容不允许为空")
    private String content;
}
